package org.alex.samples.service;

import org.alex.samples.dao.IExamRoleDAO;
import org.alex.samples.model.ExamRole;
import org.alex.samples.model.ExamUserAndRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class ExamRoleServiceImpl implements IExamRoleService {
	
	@Autowired
	private IExamRoleDAO iExamRoleDAO;
	
	@Override
	public ExamRole getExamRoleByExamUserAndRole(ExamUserAndRole examUserAndRole) {
		return iExamRoleDAO.get(examUserAndRole.getRoleId());
	}

}
